package com.cjy.threadsynchronization;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Test {

    public static void main(String[] args) {
        ExecutorService executor = Executors.newFixedThreadPool(2);
        executor.execute(new ExtraPoints());
        executor.execute(new PointsDeducted());
        executor.shutdown();
        System.out.println("已加分数\t\t\t\t扣除分数\t  \t\t\t总分");
    }
}
